package com.td.module.equipment.controller.admin.acquisitioninfo.vo;

import com.td.framework.common.pojo.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.td.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel("管理后台 - 设备采集信息分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class AcquisitionInfoPageReqVO extends PageParam {

    @ApiModelProperty(value = "采集器 ID", example = "7030")
    private String stationId;

    @ApiModelProperty(value = "数据采集上传时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] monitorTime;

    @ApiModelProperty(value = "通道编号")
    private String eKey;

    @ApiModelProperty(value = "通道要素名称及单位")
    private Integer eNum;

    @ApiModelProperty(value = "数据结果")
    private String eValue;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
